package com.itopia.team04;

import com.itopia.team04.models.SlideMenuHelper;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;

public class SlideMenuActivity extends Activity {
	
	private SlideMenuHelper smh;
	
	public static void prepare(Activity activity, int id, int width){
		SlideMenuHelper.prepare(activity, id, width);
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {		
		super.onCreate(savedInstanceState);	
		smh.activate();
		smh.open();
	}	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if(keyCode == KeyEvent.KEYCODE_BACK){
			smh.close();
			return true;
		}
		return super.onKeyDown(keyCode, event);
	}
	
	

}
